import React from 'react'
import { useState } from 'react';
export default function Demo(){
    const [tableData] = useTableData();

	return (
		<div>
            {tableData.map(item => <div>item</div>)}
		</div>
    )
}


export const useTableDataApi = {}
function useTableData(query={}) {
    const [state, setstate] = useState([])
    useTableDataApi.setstate = setstate
    return [state]
}


